POV-Ray : Newsgroups : povray.general : Help with a spherical container : Re: Help with a spherical container Server Time
4 Aug 2024 02:15:49 EDT (-0400)
  Re: Help with a spherical container  
From: Warp
Date: 5 Nov 2003 05:22:16
Message: <3fa8cf58@news.povray.org>
Kurts <kur### [at] yahoofr> wrote:
> take a rayon
> take a random number from 0 to 360
> take an other random number from +90 to -90
> then just convert polar coordonates from this 3 number to rectangular <x,y,z>

> pretty simply

  You don't get an even distribution that way.

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.